package ooday02;
/**
 * 测试类
 * @author ${pxl}
 */
public class ExtendsTest {
    public static void main(String[] args) {
        //学生
        Student zs =new Student("雷军",24,"湖北",
                "计科1班","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();
        //老师
        Teacher ls =new Teacher("马云","北京",30,12000.0);
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.teach();
        //医生
        Doctor ww=new Doctor("黄飞鸿","佛山",48,"院长");
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.cut();
    }
}
